home *** CD-ROM | disk | FTP | other *** search
-
- LINKED LIST TEST WORKBENCH
-
- (C) Copyright 1994
-
- Think Tank Enterprises (TM)
-
- Dr. Eric Horowitz
-
- CONTENTS OF THIS FILE:
-
- 1. Overview
- 2. Instalation
- 3. Operation
- 4. Function Description
- 5. More available
- 6. Licensing
- 7. Disclaimer
-
- -----------------------------------------------------------------------
-
- 1. Overview
-
- Linked lists are fundemental building blocks of data management within
- any programming environment. They provide a simple means of creating
- stacks, queues and arrays that can grow and shrink dynamically. Linked
- lists can be used to organize numbers, text strings, structures or anything
- that can be pointed to. In fact, you can even have a list of lists!
-
- TTE's linked list class provides a C++ class from which linked lists can
- easily be constructed and manipulated.
-
- This distribution contains the Linked List Test Workbench which is a
- user-freindly demonstration program illustrating the functionality of
- TTE's linked list class.
-
- With the Workbench, you can exercise all of the functionality of TTE's
- linked list class, by manipulating lists of text strings. Remember - even
- though this Test Workbench only creates lists of text strings, you can
- create lists of any object type with the TTE linked list class.
-
- -----------------------------------------------------------------------
-
- 2. Instalation
-
- Installation of this package is simple and is applicable to any WINDOWS
- program.
-
- A) in the Program Manager,
-
- 1) select a program group where the workbench will reside
- (Example, click on the "Main" program group)
-
- 2) select the "File" menu option
- 3) select the "New..." submenu option
-
- B) In the "New Program Object" Dialog
-
- 1) select "Program Item" (usually the default)
- 2) select the "OK" button
-
- C) In the "Program Item Properties" Dialog
-
- 1) Type "Linked List Workbench" in the "Description" field
- 2) Select the "Browse" button
-
- D) In the "Browser" Dialog
-
- 1) Select "lltest.exe" in the directory containing this software
- 2) Select the "OK" button
-
- E) In the "Program Item Properties" Dialog (again)
-
- 1) select the "OK" button
-
- This should place the Linked List Test Workbench icon in the
- group you selected.
-
- Simply double-click on the icon like you would any other
- Windows application.
-
- -----------------------------------------------------------------------
-
- 3. Operation
-
- The Workbench is simple to operate. Simply click on a button to see
- how it works. Workbench buttons invoke functions of the LinkList class
- and provide input and output to the user. The following describes the
- Workbench functions.
-
- 3.1 INPUT:
-
- Functions requiring textual input read from the "Input Element" box.
- The value must be supplied BEFORE selecting the function. These functions
- simply read the current value (even NULL).
-
- Functions requiring numerical input will create their own input dialog for
- you to use.
-
- 3.2 OUTPUT:
-
- Functions that return elements display the value in the "Retrieved Element"
- box.
-
- The NUMBER function returns the number of elements in the list and creates
- its own dialog box to display it.
-
- Any function that modifies the list rewrites the list in the "Forwards" and
- "Backwards" boxes. This is done to demonstrate that the lists remain
- correctly linked after being modified.
-
- -----------------------------------------------------------------------
-
- 4. Function Description
-
- This section describes the functionality of each of the LinkList class
- functions. This class maintains a reference to the current element of the
- list. The current element is the one previously referenced (or prior to
- the one previously deleted). "Next" refers to the element after the current
- element and "previous" refers to the element before the current element.
-
- "Ith" refers to an operation affecting element "i" of the list. "i" is a
- numerical value supplied by the user. Note that the first element has an
- index value of 0. In the Workbench, all Ith functions prompt the user for
- a value of "i".
-
- 4.1 GET Functions
- 4.2 POP Functions
- 4.3 Reset Functions
- 4.4 ADD Functions
- 4.5 Other Functions
-
- 4.1 GET Functions
-
- Get functions retrieve elements off of the list but DO NOT remove the
- elements.
-
- Get1st - Retrieves the first element of the list.
-
- GetLast - Retrieves the last element of the list.
-
- GetIth - Retrieves the Ith element of the list.
-
- GetNext - Retrieves the next element of the list.
-
- GetPrev - Retrieves the previous element of the list.
-
- GetCurr - Retrieves the current element of the list.
-
- 4.2 POP Funtions
-
- Pop functions retreive elements off of the list AND remove the elements
- from the list thereby making the list shorter.
-
- Pop1st - Pops the first element of the list.
-
- PopLast - Pops the last element of the list.
-
- PopIth - Pops the Ith element of the list.
-
- PopNext - Pops the next element of the list.
-
- PopPrev - Pops the previous element of the list.
-
- PopCurr - Pops the current element of the list.
-
- 4.3 Reset Functions
-
- Reset functions (abbreviated Rst) change the values in the list with
- new values. In the process, they return the OLD value.
-
- Rst1st - Resets the first element of the list.
-
- RstLast - Resets the last element of the list.
-
- RstIth - Resets the Ith element of the list.
-
- RstNext - Resets the next element of the list.
-
- RstPrev - Resets the previous element of the list.
-
- RstCurr - Resest the current element of the list.
-
- 4.4 Add Functions
-
- Add functions add new elements to the list, thereby making the list
- longer. Purists will call these PUSH functions. Here we avoid the
- term because PURE purists will note that you only PUSH to the end of
- a list and not somewhere in the middle. (ABSOLUTELY pure purists may
- complain that the same applies to POP as well!).
-
- Add1st - Adds an element to the beginning of the list.
-
- AddLast - Adds an element to the end of the list.
-
- AddIth - Adds an element as the Ith element of the list.
-
- AddNext - Adds an element after the current element of the list.
-
- AddPrev - Adds an element prior to the current element of the list.
-
- Note that there is no AddCurr function. If it would mean make the new
- element the current element and thus the current element the next
- element, this is the same as AddPrev. If it would mean to add an
- element after the current element, this would be the same as AddNext.
-
- 4.5 Other Functions
-
- Number - Reports on the number of elements in the list.
-
- ClearList - Removes all elements from the list.
-
- Info - Displays version information regarding the Workbench.
-
- Quit - Terminates the Workbench
-
- -----------------------------------------------------------------------
-
- 5. More available
-
- This Workbench simply demonstrates the capabilities of the Linked List
- class. To actually USE this class in your code, you can purchase the
- Liked List development kit by sending $35 to
-
- Think Tank Enterprises
- 4518 Dresden Rd.
- Baltimore, MD 21208
-
- The kit includes:
-
- * Object code for the LinkedList class.
- * Header file for the LinkedList class.
- * Source code for the Workbench
- (including header files and resource files -
- this is worth $35 by itself!!!).
- * Instructions
-
- The source code for the LinkedList class is NOT included.
-
- The kit comes on a 3-1/2" DD diskette
-
- -----------------------------------------------------------------------
-
- 6. Licensing
-
- All rights are reserved. This workbench is FREE. It may be distributed
- under the following conditions:
-
- 1. No modifications are made to any of the distribution files.
- 2. All of the distribution files are distributed together.
-
- -----------------------------------------------------------------------
-
- 7. Disclaimer
-
- This package is supplied AS IS. TTE makes no warrenty explicit or implied
- as to the suitability of this product for any purpose. TTE assumes no
- liablility for any consequences due to the use of this package.
-
-
-